package com.xiaofan.service;

import com.xiaofan.bean.User;
import com.xiaofan.mapper.UserMapper;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: 晓帆
 * @description:
 * @create: 2021-06-29 19:35
 **/
@Service
@Transactional
public class UserServiceIpm implements UserService{
    @Autowired
    UserMapper userMapper;
    @Override
    public void update(int id, int money) {
        int i = userMapper.selectMoney(1);
        System.out.println(i);
//        Integer integer = userMapper.updatetById(money, id);
//        int i2 =1/0;
    }
}
